package com.g13.virtualpethospital.entity;

import com.g13.virtualpethospital.common.EntityCommon;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @Title: UserEntity
 * @Author yyj1205
 * @Package com.g13.virtualpethospital.entity
 * @Date 22/3/2024 14:13
 * @description: 用户实体
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel("User 用户")
@Document("User")
public class UserEntity {
    @Id
    @ApiModelProperty("id")
    String id;
    @ApiModelProperty("用户名称")
    String username;
    @ApiModelProperty("密码")
    String pwd;
    @ApiModelProperty("角色 Enum")
    EntityCommon.RoleType role;
    @ApiModelProperty("性别")
    String gender;
    @ApiModelProperty("电话")
    String tel;

}
